﻿using System;
using UnityEngine;

// Token: 0x02000122 RID: 290
public class RotateAround : MonoBehaviour
{
	// Token: 0x060006A8 RID: 1704 RVA: 0x0002767C File Offset: 0x0002587C
	private void Start()
	{
		this.m_TargetPosition = this.Target.position;
	}

	// Token: 0x060006A9 RID: 1705 RVA: 0x00027690 File Offset: 0x00025890
	private void Update()
	{
		base.transform.RotateAround(this.m_TargetPosition, Vector3.up, Time.deltaTime * this.Speed);
	}

	// Token: 0x04000661 RID: 1633
	public Transform Target;

	// Token: 0x04000662 RID: 1634
	public float Speed = 1f;

	// Token: 0x04000663 RID: 1635
	protected Vector3 m_TargetPosition;
}
